package com.woniu.outlet.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("入库申请")
public class WarehousingApplication {
    @ApiModelProperty(value = "id",hidden = true)
    private Integer id;
    @ApiModelProperty(value = "入库申请code",hidden = true)
    private String warehousingCode;
    @ApiModelProperty(value = "入库人",hidden = true)//入库code
    private Integer userId;
    @ApiModelProperty(value = "入库申请时间",hidden = true)//入库人
    private Date warehousingTime;   //入库申请时间
    @ApiModelProperty(value = "入库的类型,C配件,P产品",required = true)
    private String type;            //C配件   M物料   P产品
    @ApiModelProperty(value = "配件或产品编码",required = true)
    private String partsCode;       //配件编码或产品编码
    @ApiModelProperty(value = "入库数量",required = true)
    private Integer num;            //入库数量
    @ApiModelProperty(value = "配件名称或产品名称",required = true)
    private String partsName;        //配件名称或产品名称
    @ApiModelProperty(value = "入库或未入库的状态",hidden = true)
    private String status;          // 因为是申请,所以有已入库和未入库两种状态
    @ApiModelProperty(value = "spare1",hidden = true)
    private String spare1;
    @ApiModelProperty(value = "spare2",hidden = true)
    private String spare2;
    @ApiModelProperty(value = "spare3",hidden = true)
    private String spare3;
}